#include <fstream>
#include <iostream>
#include <ostream>

#include "../material/StrBlob.h"
#include "../material/StrBlobPtr.hpp"
//
// Created by lingzhitech on 25-11-6.
//
int main() {
    std::ifstream infile("../ch12/text");
    StrBlob strings;
    std::string line;
    while (std::getline(infile, line)) {
        strings.push_back(line);
    }
    for (StrBlobPtr p = strings.begin(); p != strings.end(); p.incr()) {
        std::cout << p.deref() << std::endl;
    }
}